<template>
  <DeviceTreeWithSpares />  
</template>

<script setup>
import { ref } from 'vue'
import { listSbtz } from '@/api/sbtz/sbtz'
import DeviceListWithSpares from '@/components/sbtz/node/DeviceListWithSpares.vue'
import DeviceTreeWithSpares from '@/components/sbtz/node/DeviceTreeWithSpares.vue'



const loading = ref(false)
const treeRows = ref([])

function typeLabel(t) {
 return { SYSTEM:'系统', MACHINE:'母设', MODULE:'子设', COMPONENT:'部件', PART:'零件' }[t] || t
}
function typeColor(t) {
 return { SYSTEM:'success', MACHINE:'primary', MODULE:'info', COMPONENT:'warning', PART:'danger' }[t] || ''
} 

</script>
